package com.qianfan.invoice.config;

import com.qianfan.invoice.service.InvoiceOcrService;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Senhai Xu
 */
@Configuration
@EnableConfigurationProperties(QianfanProperties.class)
public class InvoiceOcrAutoConfiguration {
    
    @Bean
    public InvoiceOcrService invoiceOcrService(QianfanProperties properties) {
        return new InvoiceOcrService(properties);
    }
} 